package geekTime.chapter22ThreadPool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 线程池
 * Created by LinGer on 2019/7/1
 */
public class ThreadPoolTest {

    public static void main(String[] args) {
        //可重用固定线程数的线程池
        ExecutorService fixedThreadPool = Executors.newFixedThreadPool(3);
        //单个线程池
        ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor();
    }
}
